Skip to content

Conversation

@madsmtm
Copy link
Member

@madsmtm madsmtm commented Jan 13, 2026

  • Use console_error_panic_hook to actually know the error.
  • Use tracing::* instead of println!/eprintln!, along with tracing, to get the information in the console.
  • Don't try to compile criterion (alloca is difficult to build).

@madsmtm madsmtm added the DS - Web WebAssembly / WASM backend label Jan 13, 2026
@madsmtm madsmtm force-pushed the madsmtm/web-niceties branch from f738a7e to 2447d93 Compare January 13, 2026 20:29
@madsmtm madsmtm added the documentation Improvements or additions to documentation label Jan 13, 2026
@madsmtm madsmtm force-pushed the madsmtm/web-niceties branch from 2447d93 to 5446c8b Compare January 13, 2026 20:32
WASM, iOS and Redox do not support `run_on_demand`, and compiling
criterion on WASM can be troublesome.
println! and eprintln! are no-ops on WASM.
@madsmtm madsmtm force-pushed the madsmtm/web-niceties branch from 5446c8b to 09f9444 Compare January 13, 2026 20:58
@madsmtm madsmtm merged commit 541b940 into master Jan 17, 2026
40 checks passed
@madsmtm madsmtm deleted the madsmtm/web-niceties branch January 17, 2026 07:22
@madsmtm
Copy link
Member Author

madsmtm commented Jan 17, 2026

I went and merged this because I have plans for softbuffer v0.5 that this somewhat blocks. Will probably do so for other PRs too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation DS - Web WebAssembly / WASM backend

Development

Successfully merging this pull request may close these issues.

2 participants